import request from '/@/utils/request';
const headers = {
	onlyData: true,
};

//资料修改审核列表
export const fileEditListApi = (params: any) => {
	return request({
		url: `/manage/dataModify/pageDataModify`,
		method: 'get',
		headers,
		params,
	});
};
//资料修改申请列表
export const fileEditPageListApi = (params: any) => {
	return request({
		url: `/manage/dataModify/pageInfo`,
		method: 'get',
		headers,
		params,
	});
};
//资料修改提交
export const fileEditSubmitApi = (data: any) => {
	return request({
		url: `/manage/dataModify/submitApplication`,
		method: 'post',
		headers: {
			onlyData: true,
			showSuccessMessage: true,
		},
		data,
	});
};
//资料修改审核
export const fileEditApprovalApi = (data: any) => {
	return request({
		url: `/manage/dataModify/approveDataModify`,
		method: 'post',
		headers: {
			onlyData: true,
			showSuccessMessage: true,
		},
		data,
	});
};
//资料修改详情
export const fileEditDetailApi = (params: any) => {
	return request({
		url: `/manage/dataModify/getDetailByCode`,
		method: 'get',
		headers,
		params,
	});
};
